package com.btcode.web.mvc.servlet;

public class ApiPackScanInfo {

    private String packScanPrix;

    /**
     * 主要作用是，确定要扫描的类所在的jar在哪儿. 因为web单独打包成一个jar，如果只用getClass的话，会把jar定位到web这个jar上，导致扫描不到业务包
     */
    private Class<?> targetClass;

    public ApiPackScanInfo(String packScanPrix, Class<?> targetClass) {
        this.packScanPrix = packScanPrix;
        this.targetClass = targetClass;
    }

    /**
     * 获取扫描的包根目录
     * @return
     */
    public String getPackScanPrix() {
        return packScanPrix;
    }

    public void setPackScanPrix(String packScanPrix) {
        this.packScanPrix = packScanPrix;
    }

    public Class<?> getTargetClass() {
        return targetClass;
    }

    public void setTargetClass(Class<?> targetClass) {
        this.targetClass = targetClass;
    }

}
